package com.guys8.cemsbackend.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.guys8.cemsbackend.entity.Inschool;
import com.guys8.cemsbackend.entity.User;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * (Inschool)表实体类
 *
 * @author breeze
 * @since 2022-08-24 16:11:31
 */
@Setter
@Getter
@ToString
public class InschoolInformation {

    //private UserInformation userInformation;
    private Date upTime;
    private Date inTime;
    private String inCause;
    private String fplace;
    private String vehicle;
    private String hcode;
    //空表示没有经过风险区
    private String riskPlace;
    private float bodyTemperature;
    //0-审核中，1-通过，2-不通过
    private Integer auditState;
    private Date auditTime;
    private Integer auditAccount;


    public InschoolInformation(){}
    public InschoolInformation(User user, Inschool inschool){
        //setUserInformation(new UserInformation(user));
        setUpTime(inschool.getUpTime());
        setInTime(inschool.getInTime());
        setInCause(inschool.getInCause());
        setFplace(inschool.getFplace());
        setVehicle(inschool.getVehicle());
        setHcode(inschool.getHcode());
        setRiskPlace(inschool.getRiskPlace());
        setBodyTemperature(inschool.getBodyTemperature());
        setAuditState(inschool.getAuditState());
        setAuditTime(inschool.getAuditTime());
        setAuditAccount(inschool.getAuditAccount());
    }
}

